package pw.hais.main.main_app.activity;

import android.content.Intent;
import android.net.Uri;
import android.os.Bundle;
import android.webkit.WebView;

import pw.hais.main.R;
import pw.hais.main.main_app.app.BaseActivity;
import pw.hais.utils.EmptyUtil;

/**
 * Created by Hais1992 on 2015/12/14.
 */
public class WebActivity extends BaseActivity {
    private WebView webview;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_web);

        webview = (WebView) findViewById(R.id.webview);

        String url = getIntent().getStringExtra("OPEN_URL");
        if(EmptyUtil.emptyOfString(url))url = "http://hais.pw";
        Uri uri = Uri.parse(url);
        startActivity(new Intent(Intent.ACTION_VIEW, uri));
        finish();
    }
}
